﻿// Copyright (c) 2014 Converter Systems LLC

using MahApps.Metro.Controls;
using System.Windows;
using System.Windows.Input;

namespace ConverterSystems.Workstation.Views
{
    /// <summary>
    /// Interaction logic for SignInFlyout.xaml
    /// </summary>
    public partial class SignInFlyout : Flyout
    {
        static SignInFlyout()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(SignInFlyout), new FrameworkPropertyMetadata(typeof(Flyout)));
        }

        public SignInFlyout()
        {
            InitializeComponent();
        }

        private void OnOk(object sender, RoutedEventArgs e)
        {
            this.IsOpen = false;
            e.Handled = true;
        }

        private void OnBrowseBackExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            this.IsOpen = false;
            e.Handled = true;
        }
    }
}